package com.zzu.icukangfu.controller;

import com.jfinal.core.Controller;
import com.zzu.icukangfu.entity.Physician;
import com.zzu.icukangfu.serviceimpl.PhysicianServiceImpl;

public class PhysicianController extends Controller {

	private PhysicianServiceImpl physicianService = enhance(PhysicianServiceImpl.class);

	public void showall() {
		try {
			renderJson("list", physicianService.findAllPatient(
					((Physician) getSession().getAttribute("user")).getLong("physician_id").toString()));
		} catch (Exception e) {
			renderJson("msg", "请登录");
			e.printStackTrace();
		}

	}
}
